package com.enfi.api.domain.res;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 * @author xukk
 * @date 2018/5/4
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ApiException extends RuntimeException{
    private Integer code;
    public ApiException(Integer code, String message){
        super(message);
        this.code=code;
    }
    public ApiException(String message){
        super(message);
    }
}